import "../static/css/reset.css";
import "../static/js/jquery-ui.min";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import ajax from "./api/ajax";
import "./assets/icons/symbolIconfont.js";
import utils from "../utils/utils.js";

import Icon from "./components/common/icon.vue";

import { createApp } from "vue";
import App from "./App.vue";
// import router from "./router";
import store from "./vuex/store.js";
const vm = createApp(App);
vm.config.globalProperties.$ajax = ajax;
vm.config.globalProperties.$utils = utils;
vm.use(ElementPlus).use(store).component("Icon", Icon).mount("#app");

import MobilePageEditorV3 from "./MobilePageEditorV3.vue"; // 引入封装好的组件
const coms = [MobilePageEditorV3]; // 将来如果有其它组件,都可以写到这个数组里

// 批量组件注册
const install = function (Vue) {
  coms.forEach((com) => {
    Vue.component(com.name, com);
  });
};

export default install; // 这个方法以后再使用的时候可以被use调用
